package com.yxx.quartz.execution;

import com.yxx.entity.Task;
import com.yxx.quartz.utils.TaskInvokeUtils;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;

/**
 * 定时任务处理（禁止并发执行）
 * @author yuxiangxun
 * @date 2025/2/17
 * @apiNote
 */
@DisallowConcurrentExecution
public class QuartzDisallowConcurrentExecution extends AbstractQuartzJob{
    @Override
    protected void doExecute(JobExecutionContext jobExecutionContext, Task task) throws Exception {
        TaskInvokeUtils.invokeMethod(task);
    }
}
